projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c690416
)
ostadmin: Also ensure /ostree/modules exists
author
Colin Walters
<walters@verbum.org>
Fri, 31 Aug 2012 00:42:36 +0000
(17:42 -0700)
committer
Colin Walters
<walters@verbum.org>
Fri, 31 Aug 2012 00:42:36 +0000
(17:42 -0700)
We depend on host kernel for now.
src/ostadmin/ot-admin-builtin-init.c
patch
|
blob
|
history
diff --git
a/src/ostadmin/ot-admin-builtin-init.c
b/src/ostadmin/ot-admin-builtin-init.c
index efef9d32513bfba4e53903181bbea667d285a233..a96c02a450704e259136a467a88db148b4d5f7f6 100644
(file)
--- a/
src/ostadmin/ot-admin-builtin-init.c
+++ b/
src/ostadmin/ot-admin-builtin-init.c
@@
-53,6
+53,13
@@
ot_admin_builtin_init (int argc, char **argv, GError **error)
dir = ot_gfile_from_build_path (opt_ostree_dir, "repo", NULL);
if (!ot_gfile_ensure_directory (dir, TRUE, error))
goto out;
+
+ /* We presently copy over host kernel modules */
+ g_clear_object (&dir);
+ dir = ot_gfile_from_build_path (opt_ostree_dir, "modules", NULL);
+ if (!ot_gfile_ensure_directory (dir, TRUE, error))
+ goto out;
+
g_clear_object (&dir);
dir = ot_gfile_from_build_path (opt_ostree_dir, "repo", "objects", NULL);
if (!g_file_query_exists (dir, NULL))